module.exports = {
  publicPath: "./",
  outputDir: "docs",
  productionSourceMap: false,
  chainWebpack: config => {
    config.plugins.delete('preload')
    config.plugins.delete('prefetch')
  },
  devServer: {
    port: 8010
  },
  configureWebpack: (config) => {
    if (process.env.NODE_ENV === "production") {
        //生产包取消console debugger打印    
        config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
        // config.optimization.minimizer[0].options.terserOptions.compress.drop_debugger = true;
    }
  }
}